<%--
  Created by IntelliJ IDEA.
  User: 12460
  Date: 2024/11/30
  Time: 15:28
  To change this template use File | Settings | File Templates.
--%>
<%-- 引入核心标签库--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>核心标签库</title>
</head>
<body>
    <%
        int age=20;
        request.setAttribute("age", age);
    %>
    <c:if test="${age>=18}">
        你已经成年
    </c:if>

    <c:if test="${age<18}">
        你还未成年
    </c:if>
</body>
</html>
